package com.example.book.generator.service;

import com.example.book.generator.dao.TableDao;
import com.example.book.generator.entity.DataBase;
import com.example.book.generator.entity.Table;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * Created by an on 2016/9/23.
 */
@Service
public class TableService {

    @Resource
    private TableDao tableDao;

    public List<Table>  findByName(String tableName) {
        return tableDao.findByName(tableName);
    }

    public List<DataBase> selectDataBase(){
        return tableDao.selectDataBase();
    }

}
